package com.wang.aop;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.annotation.Order;

@Aspect
@Configuration
@Order(100)
public class AopAspect {

    @Around(value = "execution(* com.wang.controller.*.*(..))")
    public Object around(ProceedingJoinPoint joinPoint){
        try {
            System.out.println("AopAspect.around start");
            return joinPoint.proceed();
        }catch (Throwable throwable){
            System.out.println();

        }finally {
            System.out.println("AopAspect.around end");
        }
        return null;
    }

}
